﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace StudyWinform
{
    public partial class Index : Form
    {
        public Index(string message)
        {
            InitializeComponent();

            label1.Text = $"收到的参数是{message}";
        }

        //关闭框上面的×
        private void Index_FormClosing(object sender, FormClosingEventArgs e)
        {
            //让系统退出
            Application.Exit();
        }
    }
}
